/*
 * WaterSupply.cpp
 *
 *  Created on: 12-01-2011
 *      Author: Przemek
 */

#include "world/WaterSupply.hpp"
#include "world/ElementsVisitor.hpp"
#include "utils/Randomizer.hpp"

const float WaterSupply::CHANCE_OF_RAIN = 0.005f;

WaterSupply::WaterSupply() :
	Supply()
{
	amount = RangedValue<float> (Range<float> (0.0f,
			static_cast<float> (Randomizer::nextInt(200, 500))));
}

WaterSupply::WaterSupply(const WaterSupply& other) :
	Supply(other)
{
}

WaterSupply::WaterSupply(const Vector& position) :
	Supply(position)
{
}

void WaterSupply::accept(ElementsVisitor& visitor)
{
	visitor.visit(*this);
}

float WaterSupply::getSpoilageStep() const
{
	return 0.0f;
}
